<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<!--<![endif]-->
<head>

<title>${qa.ask.ask_title }-妈妈宝贝</title>

<meta name="keywords" content="${qa.tags } ">
<meta name="description" content="${qa.ask.ask_detail }">
<script src="${pageContext.request.contextPath }/js/jquery.min.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet"
	href="${pageContext.request.contextPath}/css/style.css">
</head>

<body id="mainbody">

	<div id="babytree-body-wrapper" class="ask" style="background: none;">

		<p class="bui-breadcrumb" id="BreadcrumbHeader">
			<a class="breadcrumb-home" href="${pageContext.request.contextPath}/">首页</a>
			<span class="caret">&gt;</span> <a href="/ask/" title="育儿问答">育儿问答</a>
			<span style="float: right;">
			
			<input id="keyword_input" class="input_control" type="text">
						<button class="button" onclick="search()">搜索</button>
						<script type="text/javascript">
							function search(){
								var url="${pageContext.request.contextPath }/s?w="+$("#keyword_input").val();
								console.info(url);
								window.location.href=url;								
							}
						</script>
			</span>
			<style>
</style>
		</p>

		<div class="wisdom-ask" id="wisdom">
			<div class="wisdom-body-wrapper wisdom-body-wrapper-ask-single">
				<div class="section-main" itemscope=""
					itemtype="http://rdfs.org/sioc/ns#QuestionPost">

					<div class="qa-article section-module" id="qa-article"
						data-qid="38528843">
						<div class="qa-title" style="zoom: 1; _margin-bottom: 0px;">
							<h1 itemprop="title">
								<i class="mark"></i>${qa.ask.ask_title }
							</h1>
						</div>
						<blockquote class="qa-text" itemprop="content">
							${qa.ask.ask_detail }</blockquote>

						<div class="qa-related">
							<div class="qa-contributor">
							
								<span class="source"> <abbr
									title="2011-06-02 21:09:00">${qa.ask.update_time }</abbr>
								</span>
								<ul>
									<li>提问者： <a class="color-blue"
										href="#"><span
											itemprop="accountName">${qa.ask.ask_author }</span></a>
									</li>
									<li><span itemprop="view_count">${qa.page_view }</span> 浏览</li>
								</ul>
							</div>

							<!-- 
							<ul class="qa-meta">
								<li class="tags">关键词： <span itemprop="keywords">${qa.tags }</li>

							</ul>
							 -->

						</div>
					</div>

					<!-- 最佳回答  start -->
					<c:if test="${!empty  qa.anser.best }">
						<div class="section-module section-module-border-frame"
							id="qa-answer-best" itemprop="has_reply" itemscope=""
							itemtype="http://rdfs.org/sioc/ns#AnswerPost">
							<div class="module-header">
								<div class="module-title" itemprop="status">
									最佳回答<i class="medal"></i>
								</div>
							</div>
							<div class="module-content">
								<div class="best-content">
									<ul class="qa-meta">
									<!-- 
										<li class="source"><a target="_blank"
											href="#">${qa.anser.best.from_platform }</a>;
										</li> 
										<li class="timestamp"><abbr title="2017-05-16 21:32">${qa.anser.best.update_time }</abbr>
										</li>-->
									</ul>
									<div class="answer-text" itemprop="content"
										id="best_answer_content">${qa.anser.best.content }</div>
									<!-- <ul class="answer-comments">
										<li><span class="label-q">提问者评价：</span>${qa.anser.best.comment }</li>
									</ul>-->
									<div class="answer-related">
										<div class="qa-vote">
											<a href="javascript:void(0);" class="vote-btn"> <em>${qa.anser.best.good }</em>
											</a>
										</div>
										<div class="qa-contributor" itemprop="replier" itemscope=""
											itemtype="http://rdfs.org/sioc/ns#UserAccount">

											<ul>
												<li> <a itemprop="link"
													href="#"
													rel="nofollow"> <span itemprop="accountName">
															${qa.anser.best.anser_author } </span>
												</a>
												</li>
											</ul>

										</div>
									</div>
								</div>
							</div>
						</div>
					</c:if>
					<!-- 最佳回答 end -->
					<c:if test="${ not empty qa.anser }">					
					<c:if test="${qa.anser.common.size() ne  0  }">
						<!-- 其他妈妈的回答  start -->
						<div class="section-module section-module-border-frame"
							id="qa-answers">
							<div class="module-header">
								<h3 class="module-title">${qa.anser.common.size()}条其他妈妈的回答</h3>
							</div>
							<div class="module-content">
								<ul class="qa-answer-list">

									<c:forEach items="${qa.anser.common}" varStatus="i" var="item">

										<li class="answer-item" itemprop="has_reply" itemscope=""
											itemtype="http://rdfs.org/sioc/ns#AnswerPost"><span
											style="display: none" itemprop="status">其他答案</span>
											<ul class="qa-meta">

												<li class="username" itemprop="replier" itemscope=""
													itemtype="http://rdfs.org/sioc/ns#UserAccount"><a
													class="color-blue" itemprop="link"
													href="#"
													rel="nofollow" target="_blank"><span
														itemprop="accountName">${item.anser_author }</span></a> <br>
												</li>
												<!-- 
												<li class="timestamp"><abbr title="2017-05-16 21:28">
														${item.update_time } </abbr></li>
														
												<li class="source"><a target="_blank"
													href="#">${item.from_platform }</a></li> -->
											</ul>
											<div class="answer-text" itemprop="content">
												${item.content }</div> <a class="qa-answer-list-vote"
											href="javascript:void(0)" onclick="ask_vote_ajax(119448205)"><span
												class="n" id="top_count_119448205"><em>${item.good }</em></span><span
												class="t">有用</span></a>

											<ul class="answer-comments">

												<c:forEach items="${item.add}" varStatus="i" var="add_item">
													<ul class="answer-comments">
														<li itemprop="additional_question"><span
															class="label-q">追问：</span>${add_item.zuiwen_ask }</li>
														<li itemprop="additional_reply"><span class="label-a">回答：</span>${add_item.zuiwen_anser }
														</li>
													</ul>
												</c:forEach>
											</ul></li>

									</c:forEach>

								</ul>
							</div>
						</div>
					</c:if>
					<!-- 其他妈妈的回答  end -->
				</c:if>
				</div>

				<div class="section-side">
					<div class="section-module section-module-border-frame">
						<div class="module-header">
							<div class="module-title">相关问题</div>
						</div>
						<div class="module-content">
							<ul class="text-list">

								<c:forEach items="${rec}" varStatus="i" var="item">
									<li><span class="list-title"><a
											href="${pageContext.request.contextPath }/ask/detail/${item.id}"
											refcode="" >${item.title}</a></span></li>
								</c:forEach>
							</ul>
						</div>
					</div>

				</div>
			</div>
		</div>
	</div>
	<div id="bb-footer">
		<p class="bCopyright">[京ICP备11010348号-1]</p>
	</div>


</body>
</html>
